<?php
namespace app\home\controller;
use think\Controller;
use think\Db;
class Payment extends Controller{
    public function getIndex(){
        $request=$this->request;
        $res=$request->except('action');
        $id=$res['order_id'];
        Db::table('tp_orders')->where('id',$id)->update(['status'=>1]);
        return $this->fetch('/Payment/index',['id'=>$res['order_id']]);
    }
}

